package com.sassds;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.stereotype.Component;

@Component
public class FooService {
    @HystrixCommand(fallbackMethod = "defaultFoo")
    public String getFoo() throws Exception {
        throw new Exception();
    }

    public String defaultFoo() {
        return "defaultFoo";
    }
}
